y—column block with dependent variables; x—column block with independent variables, must be same # of rows as y; n—degree of polynomial; correlation—optional nonzero flag to include coefficient.
polyreg creates a block which has 1 more row than the degree of the polynomial (2 more if correlation is nonzero) containing coefficients of x (and correlation coefficient).